FROM nginx:latest

RUN mkdir -p /data/www/octv-front

VOLUME /data/www/octv-front

WORKDIR /data/www/octv-front

ENV TIME=Asia/Shanghai

RUN ln -snf /usr/share/zoneinfo/$TIME /etc/localtime && echo $TIME > /etc/timezone

COPY ./conf/nginx.conf /etc/nginx/nginx.conf

COPY ./html/dist /data/www/octv-front
